﻿// <copyright file="IPolyline.cs" company="City of Portland, BES-ASM">
// </copyright>
// <summary>IPolyline interface</summary>

namespace BESASM.EMGAATS.BusinessClasses
{
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;

  /// <summary>
  /// Interface for polyline classes
  /// </summary>
  public interface IPolyline : ICloneable
  {
    /// <summary>
    /// Gets or sets the length of the polyline
    /// </summary>
    double Length { get; set; }

    /// <summary>
    /// Returns a value indicating if this polyline has the same coordinates as the given polyline.
    /// </summary>
    /// <param name="polyline">The polyline to compare to this one.</param>
    /// <returns>True if the polylines are the same, otherwise false.</returns>
    bool IsEquivalentTo(IPolyline polyline);
  }
}
